<ul class="menu-head-top">
	<li {if $_GPC['r']=='qa'} class="active"{/if}><a href="{php echo webUrl('qa')}">{php echo $this->plugintitle} <i class="fa fa-caret-right"></i></a></li>
</ul>

{ifp 'qa.adv'}
<div class='menu-header'>幻灯片</div>
<ul>
	<li {if $_GPC['r']=='qa.adv' || $_GPC['r']=='qa.adv.add' || $_GPC['r']=='qa.adv.edit'} class="active"{/if}><a href="{php echo webUrl('qa/adv')}">幻灯片管理</a></li>
</ul>
{/if}

{ifp 'qa.question'}
	<div class='menu-header'>问题管理</div>
	<ul>
		<li {if $_GPC['r']=='qa.question' || $_GPC['r']=='qa.question.edit'} class="active"{/if}><a href="{php echo webUrl('qa/question')}">问题管理</a></li>
		{ifp 'qa.question.add'}
		<li {if $_GPC['r']=='qa.question.add'} class="active"{/if}><a href="{php echo webUrl('qa/question/add')}">添加问题</a></li>
		{/if}
	</ul>
{/if}

{ifp 'qa.category'}
	<div class='menu-header'>分类管理</div>
	<ul>
		<li {if $_GPC['r']=='qa.category' || $_GPC['r']=='qa.category.add' || $_GPC['r']=='qa.category.edit'} class="active"{/if}><a href="{php echo webUrl('qa/category')}" style="cursor: pointer;">问题分类</a></li>
	</ul>
{/if}

{ifp 'qa.set'}
	<div class='menu-header'>设置</div>
	<ul>
		<li {if $_GPC['r']=='qa.set'} class="active"{/if}><a href="{php echo webUrl('qa/set')}">基础设置</a></li>
		<li {if $_GPC['r']=='qa.set.help'} class="active"{/if} ><a href="{php echo webUrl('qa/set/help')}">教程管理</a></li>
	</ul>
{/if}